package com.briup.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.domain.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.briup.domain.extend.CategoryExtend;

import java.util.List;

/**
* @author 白宇杰
* @description 针对表【cms_category】的数据库操作Service
* @createDate 2024-11-21 10:24:35
*/
public interface CategoryService extends IService<Category> {
 void insertCategory(Category category);
 void updateCategory(Category category);
 void deleteCategory(Integer id);
 void deleteInBatch(List<Integer> ids);
 IPage<Category> selectAll(Integer pageNum, Integer pageSize, Integer parentId);
 List<CategoryExtend> queryAllParent();
 List<Category> queryAllOneLevel();
 Category selectOneById(Integer id);
}
